var status = -1;
var selectionLog = [];

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            if (cm.getMapId() != 350160460) {
                cm.showMapleHero()
            }
            cm.openUI(1115);
            cm.getWeatherEffectNotice("戴米安正在给英雄烙下刻印.完成刻印时英雄们将受到巨大的伤害.", 127, 30000, 1);
            cm.dispose()
        }
    }
}

function start() {
    status = -1;
    action(1, 0, 0)
};